package com.api.rc.dao;

import com.api.core.ApiMapper;
import com.api.rc.model.Host;
import com.api.rc.vo.HostVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

/**
 * @author RenQiang
 * @date 2021/7/5
 */
@Mapper
public interface HostMapper extends ApiMapper<Host> {
    /**
     * 增加主持人组织的游侠场数
     *
     * @param hostId
     * @param earnCoins
     * @return
     */
    int increaseHostGames(@Param("hostId") Long hostId, @Param("earnCoins") BigDecimal earnCoins);

    /**
     * 分页查询主持人
     *
     * @param queryParams
     * @return
     */
    List<HostVo> list(@Param("queryParams") Map<String, Object> queryParams);
}
